package com.test.controller;


import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.test.po.User;
import com.test.service.UserService;


/**
 * @author Administrator
 *
 */
@RestController
public class UserController {

	@Autowired 
	UserService userService;
	
	@ResponseBody
	@RequestMapping("/query")
    public List<User> query(){
        //查寻数据
        List<User> list = userService.queryAllStudent();

        //返回数据
        return list;
    }

}
